package error;

public class Error
{
	String fileName;
	String fileAlias;
	int line;
	ErrorType errorType;
	String errorMsg;

	public Error(String fileName, String fileAlias, int line, ErrorType errorType, String errorMsg)
	{
		this.fileName = fileName;
		this.fileAlias = fileAlias;
		this.line = line;
		this.errorType = errorType;
		this.errorMsg = errorMsg;
	}

	public void pring()
	{
		System.out.printf("[%s | %s]:%d  %s: %s\n",fileName,fileAlias,line,errorType,errorMsg);
	}
}
